<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>增加用户</title>
    <link rel="stylesheet" href="/bootstrap-3.3.7-dist/css/bootstrap.css">


</head>
<body>
<div class="container" style="margin-top:10%">
    <div class="panel"style="padding:20px;width:500px;margin:0 auto;">
       <h2 class="text-center">用户添加</h2>
        <form action="/shiro/addUserDeal" method="post">
            <table class="table table-bordered" style="">
                <tr>
                    <td><label class="control-label">账号：</label></td>
                    <td><input name="username" class="form-control"/></td>
                </tr>
                <tr>
                    <td><label class="control-label">密码：</label></td>
                    <td><input name="password" type="password" class="form-control"/></td>
                </tr>
                <tr>
                    <td><label class="control-label">姓名：</label></td>
                    <td><input name="name" class="form-control"/></td>
                </tr>
            </table>

            <div align="center">
                <button class="btn btn-success">提交</button>
                <a href="/shiro/login" class="btn btn-info">登录</a>
                <div th:block th:if="${status != null and status != ''}" >
                    <th:block th:if="${status == 'true'}">
                        <p class="text-success">添加成功</p>
                    </th:block>
                    <th:block th:unless="${status == 'true'}">
                        <p class="text-warning">添加失败</p>
                    </th:block>
                </div>
            </div>
        </form>
    </div>

</div>
<script src="/js/jquery-3.3.1.min.js"></script>
<script src="/bootstrap-3.3.7-dist/js/bootstrap.js"></script>
</body>
</html>